﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data.OleDb;

namespace SAHCPIMS_final
{
    public partial class ADDCHECKUP : Form
    {
        public string homeEmpName;
        public int homeEmpNum;

        public int familyNum;
        public string fname;
        public string mname;
        public string lname;
        public string bdate;
        public string chekup;
        
        int doFlag = 0;

        

        public ADDCHECKUP()
        {
            InitializeComponent();
        }

        private void ADDCHECKUP_Load(object sender, EventArgs e)
        {
            empNumLabel.Text = homeEmpNum.ToString();
            employeeLabel.Text = homeEmpName;
        }

        private void addfamilybutton_Click(object sender, EventArgs e)
        {
            ADDFAMILY addFamilyForm = new ADDFAMILY();
            addFamilyForm.homeEmpName = homeEmpName;
            addFamilyForm.homeEmpNum = homeEmpNum;
            addFamilyForm.Visible = true;
            this.Visible = false;
        }

        private void searchbutton_Click(object sender, EventArgs e)
        {
            SEARCH search = new SEARCH();
            search.homeEmpName = homeEmpName;
            search.homeEmpNum = homeEmpNum;
            search.Visible = true;
            this.Visible = false;
        }

        private void logOutButton_Click(object sender, EventArgs e)
        {
            LOGIN logout = new LOGIN();
            logout.Visible = true;
            this.Visible = false;
        }

        private void prenatalbutton_Click(object sender, EventArgs e)
        {
            ADDPRENATAL ap = new ADDPRENATAL();

            ap.homeEmpName = homeEmpName;
            ap.homeEmpNum = homeEmpNum;

            ap.famNum = familyNum;
            ap.fname = fname;
            ap.mname = mname;
            ap.lname = lname;
            ap.bdate = bdate;

            ap.Visible = true;
            this.Visible = false;
        }

        private void vaccinebutton_Click(object sender, EventArgs e)
        {
            ADDVACCINE av = new ADDVACCINE();

            av.homeEmpName = homeEmpName;
            av.homeEmpNum = homeEmpNum;

            av.famNum = familyNum;
            av.fname = fname;
            av.mname = mname;
            av.lname = lname;
            av.bdate = bdate;

            av.Visible = true;
            this.Visible = false;
        }
      
    }
}
